﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataLibrary
{
    public enum DataProviderAction
    {
        Insert = 0,
        Edit = 1,
        Delete = 2,
        Active = 3
    }

    public  class DataContext:IDisposable
    {
        public DataContext() { 

        }

        private String m_connecString=String.Empty;

        public DataContext(String connecString) {
            m_connecString = connecString;
        }

        public Ctbl_DetailCate tbl_DetailCates {
            get { return new Ctbl_DetailCate(m_connecString); }
        }

        public Ctbl_CatTags tbl_CatTagss {
            get { return new Ctbl_CatTags(m_connecString); }
        }

        public Ctbl_Nick_Yahoo tbl_Nick_Yahoos{

            get { return new Ctbl_Nick_Yahoo(m_connecString); }
        }

       

        public Ctbl_Weblink tbl_Weblinks {
            get { return new Ctbl_Weblink(m_connecString); }
        }

        

        public Ctbl_Quangcao tbl_Quangcaos {
            get { return new Ctbl_Quangcao(m_connecString); }
        }

        public Ctbl_Category tbl_Categorys
        {
            get { return this.GetCtbl_Category(); }
        }

        private Ctbl_Category GetCtbl_Category()
        {
            return new Ctbl_Category(m_connecString);
        }

        public Ctbl_Category_Lang tbl_Category_Langs
        {
            get { return this.GetCtbl_Category_Lang(); }
        }

        private Ctbl_Category_Lang GetCtbl_Category_Lang()
        {
            return new Ctbl_Category_Lang(m_connecString);
        }

        public Ctbl_DetailProduct tbl_DetailProducts
        {
            get { return this.Gettbl_DetailProduct(); }
        }

        private Ctbl_DetailProduct Gettbl_DetailProduct()
        {
            return new Ctbl_DetailProduct(m_connecString);
        }

        public Ctbl_Download tbl_Downloads
        {
            get { return this.Gettbl_Download(); }
        }

        private Ctbl_Download Gettbl_Download()
        {
            return new Ctbl_Download(m_connecString);
        }

        public Ctbl_Faq tbl_Faqs
        {
            get { return this.Gettbl_Faq(); }
        }

        private Ctbl_Faq Gettbl_Faq()
        {
            return new Ctbl_Faq(m_connecString);
        }

        public Ctbl_Faq_Lang tbl_Faq_Langs {
            get { return new Ctbl_Faq_Lang(m_connecString); }
        }

        public Ctbl_FunctionProduct tbl_FunctionProducts {
            get { return new Ctbl_FunctionProduct(m_connecString); }
        }

        public Ctbl_Group_Khachhang tbl_Group_Khachhangs {
            get { return new Ctbl_Group_Khachhang(m_connecString); }
        }

        public Ctbl_Khachhang tbl_Khachhangs {
            get { return new Ctbl_Khachhang(m_connecString); }
        }

        public Ctbl_Language tbl_Languages {
            get { return new Ctbl_Language(m_connecString); }
        }

        public Ctbl_Member tbl_Members {
            get { return new Ctbl_Member(m_connecString); }
        }

        public Ctbl_News tbl_Newss {
            get { return new Ctbl_News(m_connecString); }
        }

        public Ctbl_News_Lang tbl_News_Langs {
            get { return new Ctbl_News_Lang(m_connecString); }
        }

        public Ctbl_Order tbl_Orders {
            get { return new Ctbl_Order(m_connecString); }
        }

        public Ctbl_Permission tbl_Permissions {
            get { return new Ctbl_Permission(m_connecString); }
        }

        public Ctbl_Permission_User tbl_Permission_Users {
            get { return new Ctbl_Permission_User(m_connecString); }
        }

        public Ctbl_Product tbl_Products {
            get { return new Ctbl_Product(m_connecString); }
        }

        public Ctbl_Product_Lang tbl_Product_Langs {
            get { return new Ctbl_Product_Lang(m_connecString); }
        }

        public AutoGetNews AutoGetNewss {
            get { return new AutoGetNews(m_connecString); }
        }

        public Ctbl_List tbl_Lists {
            get { return new Ctbl_List(m_connecString); }
        }
        public Ctbl_website tbl_Websites {
            get { return new Ctbl_website(m_connecString); }
        }

        public Ctbl_Support tbl_Supports {
            get { return new Ctbl_Support(m_connecString); }
        }

        public Ctbl_User tbl_Users {
            get { return new Ctbl_User(m_connecString); }
        }

        public Ctbl_TopUrl tbl_TopUrls {
            get { return new Ctbl_TopUrl(m_connecString); }
        }

        public Ctbl_Tabs tbl_Tabss
        {
            get { return new Ctbl_Tabs(m_connecString); }
        }

        public Ctbl_Hotro tbl_Hotros {
            get { return new Ctbl_Hotro(m_connecString); }
        }

        public Ctbl_YKienKhachHang tbl_YKienKhachHangs {
            get { return new Ctbl_YKienKhachHang(m_connecString); }
        }

        public void Dispose()
        {
            
        }
    }

    
}
